/*******************************************************************************
 * Copyright (c) 2004, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    IBM Corporation - Initial API and implementation
 *******************************************************************************/
package org.eclipse.stp.policy_builder.tcpmonitor.views;

import java.util.Iterator;

import javax.xml.namespace.NamespaceContext;


public class XMLNamespaceContext implements NamespaceContext {
private URIMapper mapper; 
	public XMLNamespaceContext(URIMapper mapper){
		this.mapper = mapper ;
	}
	public String getNamespaceURI(String prefix) {
		// TODO Auto-generated method stub
		return (String) mapper.getNamespacePrefixMap().get(prefix);
		//return null;
	}

	
	public String getPrefix(String namespaceURI) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public Iterator getPrefixes(String namespaceURI) {
		// TODO Auto-generated method stub
		return mapper.getNamespacePrefixMap().keySet().iterator();
		
	}

}

